def count(str):
   result = {'数字':0,'字母':0,'其他':0}
   for i in str:
      if i.isdigit():
         result['数字'] +=1
      elif (i>='A' and i<='Z') or (i>= 'a' and i<='z'):
         result['字母'] +=1
      else:
         result['其他'] +=1
   return result
print(count(input('请输入字符串：')))